package org.wyf.EveryPoint.crowd.service;

import org.wyf.EveryPoint.crowd.entity.Reward;
import org.wyf.EveryPoint.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 回报设置 Service接口
 *
 * @author wyf
 * @date 2021-04-09 16:56:39
 */
public interface IRewardService extends IService<Reward> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param reward reward
     * @return IPage<Reward>
     */
    IPage<Reward> findRewards(QueryRequest request, Reward reward);

    /**
     * 查询（所有）
     *
     * @param reward reward
     * @return List<Reward>
     */
    List<Reward> findRewards(Reward reward);

    /**
     * 新增
     *
     * @param reward reward
     */
    void createReward(Reward reward);

    /**
     * 修改
     *
     * @param reward reward
     */
    void updateReward(Reward reward);

    /**
     * 删除
     *
     * @param reward reward
     */
    void deleteReward(Reward reward);
}
